package com.example.administrator.baikangxing.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.administrator.baikangxing.Dao.OperateData;
import com.example.administrator.baikangxing.R;
import com.example.administrator.baikangxing.activity.GuideActivity;
import com.example.administrator.baikangxing.activity.LoginActivity;
import com.example.administrator.baikangxing.activity.MainActivity;
import com.example.administrator.baikangxing.activity.WelcomActivity;

/**
 * A simple {@link Fragment} subclass.
 */
public class EntryFragment extends Fragment {


    public EntryFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_entry, null);
        v.findViewById(R.id.btn_entry).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                OperateData.saveIntData(getContext(),"guide_state",1);
                startActivity(new Intent(getContext(),LoginActivity.class));
            }
        });
        return v;
    }

}
